package com.study.springbootsecurity.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.study.springbootsecurity.entity.Role;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @className: RoleMapper
 * @Description: TODO RoleMapper 角色数据访问层
 * @version: v1.８.0
 * @author: Huangjianyun
 * @date: 2025-06-05 17:07
 */
@Mapper
public interface RoleMapper extends BaseMapper<Role> {

    List<Role> findRolesByUserId(@Param("userId") Long userId);

}
